<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
	<meta name="viewport" content="user-scalable=no,viewport-fit=cover" />
	<link href="./css/baseCss.css" rel="stylesheet" type="text/css"/>
	<link href="./base/layer.css" rel="stylesheet" type="text/css"/>
	<!-- <link href="./base/articlecon.css" rel="stylesheet" type="text/css"/> -->
	<link href="./base/base2.css" rel="stylesheet" type="text/css"/>
	<link rel="stylesheet" type="text/css" href="./css/swiper-3.4.0.min.css">
	<script type="text/javascript" src="./base/rem.js"></script>
	<script type="text/javascript" src="./base/iscroll.js"></script>
	

	<style type="text/css">
		
		.audit{
			text-align: center;
		}
		.audit_logo{
			margin-top: 1.8rem;
		}
		.audit_logo img{
			width: 2rem;
		}
		.audit_logo_F{
			width: 2rem;
    		height: 2rem;
    		background-color: #f73035;
    		margin: 0 auto;
    		border-radius: 2rem;
    		position: relative;
		}
		.audit_logo_F:before{
			content: "";
    		position: absolute;
    		width: 1rem;
    		height: 0.08rem;
    		background-color: #fff;
    		top: 50%;
    		left: 25%;
    		transform: rotate(45deg);
    		border-radius: 1rem;
		}
		.audit_logo_F:after{
			content: "";
    		position: absolute;
    		width: 1rem;
    		height: 0.08rem;
    		background-color: #fff;
    		top: 50%;
    		left: 25%;
    		transform: rotate(135deg);
    		border-radius: 1rem;
		}

		.audit_prompt{
			margin-top: 0.5rem;
		}
		.audit_text{
			font-size: 0.43rem;
    		text-align: center;
    		margin: 0 auto;
    		color: #666666;
    		line-height: 0.65rem;
    		margin-top: 0.3rem;
		}
		
		
		/*最下面按钮*/
		.sure{
			width: 70%;
    		margin-top: 1.65rem;
		}
	</style>
	<title>菜品审核中</title>
</head>
<body>
	<div>
		<header class="allHeader">
			<!-- <div class="headerReturn" onclick="window.history.back(-1);"><img class="imgBai" src="./img/nav_bake.png"></div> -->
			<span class="addOreditor">菜品审核通过</span>
			<div class="headerList"><img class="imgBai" src="./img/nav_menu.png"></div>
		</header>
		
		<section>
			<div class="audit">
				<!-- <div class='audit_logo'><div class='audit_logo_F'></div></div>
				<div class='audit_prompt'>菜品审核失败</div>
				<div class="audit_text">原因：上传菜品图片与菜品描述不相符合</div>
				<button class='sure redBtn'>重新编辑</button> -->
			</div>
			

			
		</section>

		
	</div>
	
</body>

<script type="text/javascript" src="./js/jquery.min.js"></script>
<script type="text/javascript" src="./js/httpUnit.js"></script>
<script type="text/javascript" src="./js/constants.js"></script>
<script type="text/javascript">
	
	isSF();

	function isSF(){
		var Request = new Object();
    	Request = GetRequest();
    	var status = Request['status'];
    	if(status==1){
    		failure(status);
    	}else if(status==2){
    		success(status);
    	}
	}

	function success(status){
		$(".addOreditor").text("支付成功");
		var html = "<div class='audit_logo'><img src='./img/success_01.png'></div>"
				+"<div class='audit_prompt'>支付成功!</div>"
				+"<button class='sure redBtn' onclick=window.location.href='./order.html?status="+status+"'>进入订单页</button>";
		$(".audit").html(html);
	}

	function failure(status){
		$(".addOreditor").text("支付失败");
		var html = "<div class='audit_logo'><div class='audit_logo_F'></div></div>"
				+"<div class='audit_prompt'>密码错误，支付失败!</div>"
				
				+"<button class='sure redBtn' onclick=window.location.href='./order.html?status="+status+"'>进入订单页</button>";
		$(".audit").html(html);
	}

	//获取url中"?"符后的字串
	function GetRequest() {
	    var url = location.search; //获取url中"?"符后的字串   
	    
	    var theRequest = new Object();
	    if (url.indexOf("?") != -1) {
	      var str = url.substr(1);
	      
	      strs = str.split("&");
	      
	      for (var i = 0; i < strs.length; i++) {
	        
	        theRequest[strs[i].split("=")[0]] = strs[i]
	            .split("=")[1];
	      }
	    }
	    return theRequest;
	}
</script>

</html>